#ifndef __PWMDRIVER_H__
#define __PWMDRIVER_H__

#include<asm/ioctl.h>

typedef struct beep_desc{
    int beep;
    int beep_state;
    int tcnt;
    int tcmp;
}beep_desc_t;

#define PWM_MAGIC 'f'

#define BEEP_ON _IOW(PWM_MAGIC, 0, beep_desc_t)
#define BEEP_OFF _IOW(PWM_MAGIC, 1, beep_desc_t)
#define BEEP_FREQ _IOW(PWM_MAGIC, 2, beep_desc_t)


#endif